using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class alert_rule_lineMap : EntityTypeConfiguration<alert_rule_line>
    {
        public alert_rule_lineMap()
        {
            // Primary Key
            this.HasKey(t => t.rule_line_id);

            // Properties
            // Table & Column Mappings
            this.ToTable("alert_rule_line");
            this.Property(t => t.rule_line_id).HasColumnName("rule_line_id");
            this.Property(t => t.alert_rule_id).HasColumnName("alert_rule_id");
            this.Property(t => t.alert_type_id).HasColumnName("alert_type_id");
            this.Property(t => t.alert_frequency_id).HasColumnName("alert_frequency_id");
            this.Property(t => t.genEnd_date).HasColumnName("genEnd_date");
            this.Property(t => t.service_seq).HasColumnName("service_seq");
        }
    }
}
